import Vue from 'vue'

import HomeView from '../views/HomeView.vue'


const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/usercenter',
    name: 'UserCenter',
    component: () => import('../views/usercenter/index.vue')
  },
  {
    path: '/microapp/**',
    name: 'Microapp',
    component: () => import(/* webpackChunkName: "about" */ '../views/QiankunPage.vue')
  },
  {
    path: '/setting',
    name: 'Setting',
    component: () => import(/* webpackChunkName: "about" */ '../views/SettingView.vue')
  },
  {
    path: '/403',
    name: 'NoPermission',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/NoPermission.vue')
  },
  {
    path: '/videoAudio/:type',
    name: 'VideoAudio',
    component: () => import(/* webpackChunkName: "about" */ '../views/VideoAudio.vue')
  },
  {
    path: '/text/:type',
    name: 'VideoAudio',
    component: () => import(/* webpackChunkName: "about" */ '../views/VideoAudio.vue')
  },
  {
    path: '/resource/:type',
    name: 'Resource',
    component: () => import(/* webpackChunkName: "about" */ '../views/resource/Resource.vue')
  },
  {
    path: '/resourceDetail/:id',
    name: 'ResourceDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/resource/ResourceDetail.vue')
  },
  {
    path: '/videoAudioDetail/:id',
    name: 'VideoAudioDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/VideoAudioDetail.vue')
  },
  {
    path: '/textDetail/:id',
    name: 'VideoAudioDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/VideoAudioDetail.vue')
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import(/* webpackChunkName: "about" */ '../views/Cart.vue')
  },{
    path: '/disabled',
    name: 'Disabled',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/DisabledPage.vue')
  },
  {
    path: '/news',
    name: 'News',
    component: () => import(/* webpackChunkName: "news" */ '../views/news/News.vue')
  },
  {
    path: '/news/:id',
    name: 'NewsDetail',
    component: () => import(/* webpackChunkName: "news" */ '../views/news/NewsDetail.vue')
  },
  {
    path: '/journalDetail/:id',
    name: 'JournalDetail',
    component: () => import(/* webpackChunkName: "news" */ '../views/JournalDetail.vue')
  },
  {
    path: '/journal',
    name: 'Journal',
    component: () => import(/* webpackChunkName: "news" */ '../views/Journal.vue')
  },
  {
    path: '/journalArticle',
    name: 'JournalArticle',
    component: () => import(/* webpackChunkName: "about" */ '../views/JournalArticle.vue')
  },
  {
    path: '/conference',
    name: 'Conference',
    component: () => import(/* webpackChunkName: "about" */ '../views/Conference.vue')
  },
  {
    path: '/conferenceArticle/:id',
    name: 'ConferenceArticle',
    component: () => import(/* webpackChunkName: "about" */ '../views/ConferenceArticle.vue')
  },
  {
    path: '/conferenceArticleDetail/:id',
    name: 'ConferenceArticleDetail',
    component: () => import(/* webpackChunkName: "about" */ '../views/ConferenceArticleDetail.vue')
  },
  {
    path: '/diancang',
    name: 'Diancang',
    component: () => import(/* webpackChunkName: "about" */ '../views/Diancang.vue')
  },
]

export default routes
